import { myAjax } from '../utils/request';

/**
 * 获取用户所在区县
 * @param param
 */
export const getUserCounty = (param) => {
  const url = 'wxapi/common/directlist';
  return myAjax(url, param);
};

/**
 * 获取服务人员区县
 * @param param
 */
export const getStaffCounty = (param) => {
  const url = 'wxapi/common/directlistAll';
  return myAjax(url, param);
};

/**
 * 设置评议人所在县区
 * @param param
 */
export const saveUserCounty = (param) => {
  const url = 'wxapi/common/setCommentPersonDirect';
  return myAjax(url, param);
};


export const saveUserRole = (param) => {
  const url = 'wxapi/common/setCommentPersonRole';
  return myAjax(url, param);
};

export default {
  getUserCounty,
  getStaffCounty,
  saveUserCounty,
  saveUserRole,
};
